@import "../../config/display/set9-template";

.tvo-testimonials-display.tvo-#{$template-name}-template {
  @include box-sizing;
  font-family: $font-family;

  .tvo-testimonial-display-item {
    @include center-text;
    @include box-sizing;

    h4, p {
      font-family: $font-family;
    }

    p {
      color: $title-color-small;
      font-size: $font-size;
      font-weight: $font-weight;
      line-height: $font-line-height;
      margin-bottom: $font-margin-bottom;
    }
  }

  h4 {
    @include transform-uppercase;
  }

  .tvo-testimonial-image-cover {
    @include center-align;
    border-radius: $image-border-radius;
    border-width: $image-border-size;
    border-style: solid;
    height: $image-size;
    margin-bottom: $image-margin-bottom;
    width: $image-size;
  }

  .tvo-testimonial-image {
    height: $image-size;
    width: $image-size;
  }

  .tvo-testimonial-quote {
    color: $quotes-color;
    position: relative;

    &:before {
      @include up-quotes;
      @include center-align;
      font-size: $quotes-size;
      font-weight: $quotes-weight;
      line-height: $quotes-line-height;
    }
  }

  .tvo-testimonial-info {
    -webkit-flex: 1;
    flex: 1;
    padding-left: $grid-item-padding-side;
  }

  .tvo-testimonial-name {
    color: $name-color-dark;
    display: block;
    font-size: $name-size;
    font-weight: $name-weight;
    line-height: $name-line-height;
  }

  .tvo-testimonial-role {
    color: $job-color-dark;
    font-size: $job-size;
    font-weight: $job-weight;
    font-style: italic;
    line-height: $job-line-height;

    a {
      color: inherit;
      text-decoration: none;
    }
  }

  //.tvo-testimonial-content {
  //  word-break: break-all;
  //}
}

@each $name, $color in $color-pallete {
  .tvo-#{$template-name}-template.tve_#{$name} {
    .tvo-apply-background {
      background: $color;
    }

    .tvo-testimonial-quote {
      color: $color;
    }
  }
}

@each $name, $color in $different-variation-name {
  .tvo-testimonials-display.tvo-#{$template-name}-template.tve_#{$name} {
    .tvo-testimonial-display-item {
      h4, p {
        color: $color;
      }
    }

    .tvo-testimonial-name, .tvo-testimonial-role {
      color: $color;
    }
  }
}
